From 95c6e68f9e71d9119c58f992a51ad752d205bfda Mon Sep 17 00:00:00 2001 From: Lucas Kolstad Date: Thu, 31 Aug 2017 10:55:19 -0700 Subject: [PATCH] Tweak proc_macro test to correctly test case. Minor change causes the test to actually test the case instead of always passing regardless of the fix that adds the host dependency directory to the library search path. --- tests/test.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/test.rs b/tests/test.rs index 310ba9768..f9d69e1f2 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -2816,10 +2816,10 @@ fn find_dependency_of_proc_macro_dependency_with_target() { proc-macro = true [dependencies] - dep_of_proc_macro_dep = "^0.1" + bar = "^0.1" "#) .file("proc_macro_dep/src/lib.rs", r#" - extern crate dep_of_proc_macro_dep; + extern crate bar; extern crate proc_macro; use proc_macro::TokenStream; @@ -2828,7 +2828,11 @@ fn find_dependency_of_proc_macro_dependency_with_target() { "".parse().unwrap() } "#); - Package::new("dep_of_proc_macro_dep", "0.1.0").publish(); + Package::new("foo", "0.1.0").publish(); + Package::new("bar", "0.1.0") + .dep("foo", "0.1") + .file("src/lib.rs", "extern crate foo;") + .publish(); workspace.build(); assert_that(workspace.cargo("test").arg("--all").arg("--target").arg(rustc_host()), execs().with_status(0)); -- 2.30.2